#ifndef HEADER_H
#define HEADER_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <ctype.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/types.h>
#include <dirent.h>
#include <pwd.h>
#include <grp.h>

#define ARGS_CHECK(argc, expected)\
    do{\
        if ((argc) != (expected)) {\
            fprintf(stderr, "args num error!");\
                        exit(1);\
        }\
    } while (0)
#define ERROR_CHECK(ret, error_flag, msg)\
    do {\
        if ((ret) == (error_flag)) {\
            perror(msg); \
            exit(1); \
        } \
    } while (0)
#endif